package com.system.service.impl;

import com.system.mapper.SysRolePermissionMapper;
import com.system.model.SysRolePermission;
import com.system.service.SysRolePermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysRolePermissionServiceImpl implements SysRolePermissionService {
    @Autowired
    private SysRolePermissionMapper sysRolePermissionMapper;

    @Override
    public int deleteSysRolePermissionByRoleId(int sysRoleId) {
        int i = sysRolePermissionMapper.deleteSysRolePermissionByRoleId(sysRoleId);
        return i;
    }

    @Override
    public int addSysRolePermissionBySysRolePermission(SysRolePermission sysRolePermission) {
        int i = sysRolePermissionMapper.insertSelective(sysRolePermission);
        return i;
    }
}
